Skip to content

Conversation

robhudson
Copy link
Collaborator

@robhudson robhudson commented Jan 4, 2025

Check that EXCLUDE_URL_PREFIXES in settings is not a string.

If it is a string it can lead to a security issue where the string is treated as a list of characters, resulting in '/' matching all paths excluding the CSP header from all responses.

Copy link
Contributor

@stevejalim stevejalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, subtle footgun made safe

r+

@robhudson robhudson merged commit e9e4e27 into main Jan 8, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants